<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="follow, index">
<title><?= $template['title'];?> </title>

<?= $template['metadata'];?>
<?= setting('google_analytics');?>

<!-- Twitter -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site"
	content="@<?php echo setting('web_title');?>">
<meta name="twitter:creator" content="<?php echo setting('web_title');?>">
<meta name="twitter:title" content="<?php echo $profile['meta_title'];?>">
<meta name="twitter:description"
	content="<?php echo $profile['meta_description'];?>">
<meta name="twitter:image" content="">
<!-- Facebook Open Graph -->
<meta property="og:title" content="<?php echo setting('web_title');?>" />
<meta property="og:type" content="website" />
<meta property="og:description" content="<?php echo $profile['meta_description'];?>" />
<meta property="og:image" content="" />
<meta property="og:url" content="<?php echo current_url();?>" />
<meta property="og:site_name" content="<?php echo setting('web_title');?>" />
<!-- Google Plus -->
<meta itemprop="name" content="<?php echo setting('web_title');?>" />
<meta itemprop="image" content="" />
<meta itemprop="description" content="<?php echo $profile['meta_description'];?>" />




<!-- Styles -->
<?php
// add logic if user is logged in to flush the assets cache
// Assets::clear_cache();
?>

<?php Assets::css($this->config->item('theme_css')); ?>
<link
	href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"
	rel="stylesheet">
<link href="<?= base_url();?>assets/css/style.css" rel="stylesheet">
<link href="<?= base_url();?>assets/css/ypstyle.css" rel="stylesheet">
<link href="<?= base_url();?>assets/css/jquery-ui.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
<!-- JS -->
<?php Assets::cdn($this->config->item('theme_jscdn')); ?>
<?php  Assets::js($this->config->item('theme_js')); ?>

<script src="<?= base_url();?>assets/js/jquery-ui-1.10.3.custom.js"></script>


<style>
#map-canvas {
	width: 100%;
	margin-top:1px;
}
</style>

<!-- favicon -->
<link rel="shortcut icon"
	href="<?php echo base_url('assets/img/ico/favicon.ico'); ?>">
</head>


<body data-baseurl="<?= base_url(); ?>">


	<section class="header">
		<?php
		if (isset($template['partials']['header']))
			echo $template['partials']['header'];
		?>
	</section>

<?php 
if($template['breadcrumbs']){
?>				
						
	<div class="row">
		<div class="container">
			<div class="col-lg-12">
				<ul class="breadcrumb">
					<li><a href="<?=base_url();?>"><i class="fa fa-lg fa-home"></i> </a>
					</li>
					<li><a href="<?=base_url().location('',TRUE);?>">Home </a>
					</li>

					<?php 
					foreach ($template['breadcrumbs'] as $breadcrumbs):
					?>
						
					<li>
					<?php if($breadcrumbs['uri']){?>
					<?php echo anchor($breadcrumbs['uri'], $breadcrumbs['name'], "title=".$breadcrumbs['name']."");
							
						}else{
							echo $breadcrumbs['name'];
						}
	
						endforeach;
					
					?>
					</li>
				</ul>
			</div>
		</div>
	</div>
<?php }?>

	<div class="row">
		<div class="container">

			<div class="col-md-8">
				<?php echo $template['body'];?>

			</div>

			<div class="col-md-4">
				
				<!-- 
				<div>
					<iframe title="YouTube video player" width="100%" height="300" src="http://www.youtube.com/embed/PIqKx95256A?autoplay=1" frameborder="0" allowfullscreen></iframe>
				</div>
				 -->
				
				<?php
				if (isset($widget_contact) && $widget_contact == TRUE)
					echo Modules::run('widget/contact/show',$postID = $profile['id']);
				?>
				
				<?php if(isset($adsense) && $adsense != ''){?>
				<div class="adspace end">
					<script async
						src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
					<!-- RESPONSIVE2 -->
					<ins class="adsbygoogle" style="display: block"
						data-ad-client="<?php echo $adsense;?>" data-ad-format="auto"></ins>
					<script>
				(adsbygoogle = window.adsbygoogle || []).push({});
				</script>
				</div>
				<?php }?>
				
				<?php
				if (isset($widget_recent_listing) && $widget_recent_listing == TRUE)
					echo Modules::run('widget/recent_listing/show');
				?>

				

				<?php
				if (isset($widget_popular_listing) && $widget_popular_listing == TRUE)
					echo Modules::run('widget/popular_listing/show');
				?>



			</div>

		</div>
		<!--/row-->

	</div>


















    <?php
    if (isset($template['partials']['footer']))
        echo $template['partials']['footer'];
    ?>









</body>
</html>
